/**  
 * Copyright © 2014公司名字. All rights reserved.
 *
 * @Title: QuartzUpate.java
 * @Prject: web
 * @Package: yang.quartz
 * @Description: TODO
 * @author: Administrator  
 * @date: 2014年6月29日 下午8:21:48
 * @version: V1.0  
 */
package yang.quartz;


import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import yang.service.PatientServiceI;

/**
 * @ClassName: QuartzUpate
 * @Description: 计划任务
 * @author: Administrator
 * @date: 2014年6月29日 下午8:21:48
 */

public class QuartzUpate extends QuartzJobBean{
	private PatientServiceI patientService;
	/**
	 * @Title: executeInternal
	 * @Description: 任务
	 * @param arg0
	 * @throws JobExecutionException
	 * @see org.springframework.scheduling.quartz.QuartzJobBean#executeInternal(org.quartz.JobExecutionContext)
	 */
	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		patientService.updatePatientWhen12();
	}
	
	//---- get set -----
	public PatientServiceI getPatientService() {
		return patientService;
	}
	public void setPatientService(PatientServiceI patientService) {
		this.patientService = patientService;
	}

	
	
	
	
	
}
